Namespace - LJCNetCommon
Parameters
increment -
The amount to increment or decrement the indent count.
Returns
The current indent count.
Syntax
C# |
public Int32 AddIndent(Int32 increment = 1)
|
Changes the IndentCount by the provided value.
Example
C# |
var tb = new TextBuilder();
tb.AddIndent();
tb.AddText("This text is not indented.");
tb.Text("This text is indented.");
var addIndent = false;
tb.Text("Not indented.", addIndent);
tb.Text("No start with newline.", allowNewLine: false);
var result = tb.ToString();
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.